How to iteratively construct objects in constructors in C